home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960715-19961006 / 000323_news@columbia.edu _Wed Sep 11 14:25:53 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id OAA07757 for <kermit.misc@watsun.cc.columbia.edu>; Wed, 11 Sep 1996 14:25:51 -0400 (EDT)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id OAA11940 for kermit.misc@watsun; Wed, 11 Sep 1996 14:25:51 -0400 (EDT)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!news-peer.gsl.net!news.gsl.net!portc01.blue.aol.com!newsstand.cit.cornell.edu!news.acsu.buffalo.edu!news.drenet.dnd.ca!crc-news.doc.ca!nott!bcarh189.bnr.ca!crchh327.rich.bnr.ca!anandkr
  5. From: anandkr@bnr.ca (Anand Krishnaswamy)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Open and write on Modem device
  8. Date: 11 Sep 1996 17:50:16 GMT
  9. Organization: Bell-Northern Research Ltd.
  10. Lines: 34
  11. Distribution: world
  12. Message-ID: <516u4o$dmi@crchh327.rich.bnr.ca>
  13. NNTP-Posting-Host: crchh39d.rich.bnr.ca
  14. Originator: anandkr@crchh39d
  15.  
  16.  
  17. Hope someone can help me with this problem:
  18.  
  19. Am trying to write C code that can dial out through
  20. a modem, connected to a tty port, for example,
  21. /dev/ttyd0p7, on a 10.x system. Whenever I try to
  22. do an open on this device to write, the open waits, 
  23. as expected, waiting for a carrier (see man page for open).
  24.  
  25. If I set the O_NDELAY or the O_NONBLOCK bit set while
  26. doing the open, the open returns, but the write fails. 
  27. Apparently I am heading in the right direction, but not
  28. quite there. I've tried to look into Stevens Adv. Prog.
  29. in Unix for help, but to no success. 
  30.  
  31. Bottom line that is required, just to dial a telephone!
  32.  
  33. I am able to use kermit to set line to the above device,
  34. and then do a atdt to the telephone number without any
  35. problem. I would like to know what I need to do, to
  36. enable the dialing onto the device. A code segment that 
  37. can illustrate the required things is very much appreciated.
  38.  
  39. Please post to this newsgroup, or send email to:
  40.   anandkr@nortel.com
  41.  
  42. A speedy response would be great!
  43.  
  44. Thanks in advance,
  45. Anand
  46. -- 
  47.                               Anand Krishnaswamy
  48.                                   MSS, Nortel
  49.                              Richardson, TX 75082